package com.ruoyi.sj.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

/**
 * 动态权限表 sj_dynamic_permit
 * 
 * @author tyc@yanyu.com
 * @date 2018-12-29
 */
public class DynamicPermit extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Long id;
	/** 类型（1.用户，2.标签） */
	private String type;
	/** 动态ID */
	private Long dynamicId;
	/** 用户ID或标签ID */
	private Long businessId;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setType(String type) 
	{
		this.type = type;
	}

	public String getType() 
	{
		return type;
	}
	public void setDynamicId(Long dynamicId) 
	{
		this.dynamicId = dynamicId;
	}

	public Long getDynamicId() 
	{
		return dynamicId;
	}
	public void setBusinessId(Long businessId) 
	{
		this.businessId = businessId;
	}

	public Long getBusinessId() 
	{
		return businessId;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("dynamicId", getDynamicId())
            .append("businessId", getBusinessId())
            .toString();
    }
}
